<?php
/*
 * 侧边栏
 */
?>
<div id="sidebar">
<?php
$widgets = !empty($options_cache['widgets']) ? unserialize($options_cache['widgets']) : array();
foreach ($widgets as $w_name=>$w_info) {
	while (strlen($w_name) == (strrpos($w_name,'_')+1)) {
		$w_name = substr($w_name,0,-1);
	}
	$callback = 'widget_'.$w_name;
	if (function_exists($callback)) {
		call_user_func($callback, $w_info);
	}
}?></div>
